package com.aaa.service.impl;

import com.aaa.entity.Play;
import com.aaa.mapper.PlayMapper;
import com.aaa.service.IPlayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Bean
 * @since 2021-09-07
 */
@Service
public class PlayServiceImpl extends ServiceImpl<PlayMapper, Play> implements IPlayService {

    @Autowired
    PlayMapper playMapper;
    public boolean add(Integer uid,Integer vid){
       if( playMapper.add(uid, vid)==1){
           return true;
       }
        return false;
    }
}
